[XENOPROF] Fix buffer sharing with auto-translate guests.
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Tue, 19 Dec 2006 11:00:05 +0000 (11:00 +0000)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Tue, 19 Dec 2006 11:00:05 +0000 (11:00 +0000)
Signed-off-by: Jose Renato Santos <jsantos@hpl.hp.com>
xen/common/xenoprof.c

index 39eee3d9a752ff30b1bd495f831064d2055ca762..f297859de5678019a351ae367f9cf29045a252d6 100644 (file)
@@ -384,7 +384,7 @@ static int add_passive_list(XEN_GUEST_HANDLE(void) arg)
     d->xenoprof->domain_type = XENOPROF_DOMAIN_PASSIVE;
     passive.nbuf = d->xenoprof->nbuf;
     passive.bufsize = d->xenoprof->bufsize;
-    if ( !shadow_mode_translate(d) )
+    if ( !shadow_mode_translate(current->domain) )
         passive.buf_gmaddr = __pa(d->xenoprof->rawbuf);
     else
         xenoprof_shared_gmfn_with_guest(